function changePic(index){
	var pics = document.getElementById("imgid")
	var spans = document.getElementById("sps").getElementsByTagName("span");
	
	if(index==0){
		pics.src="img/silder_one.png";		
		for(var i =0;i<spans.length;i++){
			if(i==index){
				spans[i].className="selected";
			}else{
				spans[i].className=null;
		}		
	}
	}else if(index==1){
		pics.src="img/silder_two.png";
		for(var i =0;i<spans.length;i++){
			if(i==index){
				spans[i].className="selected";
			}else{
				spans[i].className=null;
		}		
	}
	}else if(index==2){					
		pics.src="img/silder_three.png";
		for(var i =0;i<spans.length;i++){
			if(i==index){
				spans[i].className="selected";
			}else{
				spans[i].className=null;
			}		
		}
	}else if(index==3){
		pics.src="img/silder_four.png";
			for(var i =0;i<spans.length;i++){
				if(i==index){
					spans[i].className="selected";
				}else{
					spans[i].className=null;
			}		
		}	
	}
}

function selectN(indexN){
	var dd = document.getElementById("navid").getElementsByTagName("a");
	for(var i =0;i<dd.length;i++){
		if(i==indexN){
			dd[i].className="selected";
		}else{
			dd[i].className=null;
		}		
	}
}

